// SEE END OF FILE FOR LICENSE TERMS

// This allows easier code sharing between autopilot and other CANbus boards

#ifndef CAN_DEFINES_H
#define CAN_DEFINES_H


#define CANBUS_ON_UDB2		0
#define CANBUS_ON_UDB3		0
#define CANBUS_ON_INTERFACE	1

	#include "libUDB.h"

// Comment out for CAN interface build
//	#define CANBUS_LOCATION		CANBUS_ON_UDB2
//	#include "../libDCM/libDCM_internal.h"
//	#include "../matrixpilot/defines.h"	

// Comment out for autopilot build
	#include "config.h"
	#include "libDCM_internal.h"
	#include "libDCM.h"
	#include "interface_defines.h"
	#include "defines.h"
	#define CANBUS_LOCATION 	CANBUS_ON_INTERFACE

#endif


/****************************************************************************/
// This is part of the servo and radio interface software
//
// ServoInterface source code
//	http://code.google.com/p/rc-servo-interface
//
// Copyright 2010 ServoInterface Team
// See the AUTHORS.TXT file for a list of authors of ServoInterface.
//
// ServoInterface is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ServoInterface is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License 
// along with ServoInterface.  If not, see <http://www.gnu.org/licenses/>.
//
// Many parts of ServoInterface use either modified or unmodified code
// from the MatrixPilot pilot project.
// The project also contains code for modifying MatrixPilot to operate
// with ServoInterface.
// For details, credits and licenses of MatrixPilot see the AUTHORS.TXT file.
// or see this website: http://code.google.com/p/gentlenav
/****************************************************************************/
